import request from '@/utils/request'

/**
 * 获取drgs组
 */
export function getDRGGroupList (data) {
    return request({
        url: '/MRMS/api/DRGroup/GetDRGroup',
        method: 'post',
        data
    })
}

/**
 * 编辑drgs组
 */
export function updateGroup (data) {
    return request({
        url: '/MRMS/api/DRGroup/UpDrGroup',
        method: 'post',
        data
    })
}

/**
 * 获取mdc
 */
export function getMdc (data) {
    return request({
        url: '/MRMS/Api/DRGroup/GetMdc',
        method: 'get',
        data
    })
}

/**
 * 修改启停
 */
export function changeState (data) {
    return request({
        url: '/MRMS/Api/DRGroup/EditState',
        method: 'post',
        data
    })
}

/**
 * 获取参数
 */
export function getParamsDrgData (data) {
    return request({
        url: `/MRMS/api/system/Query?orgId=${data}`,
        method: 'get',
        data
    })
}

/**
 * 获取单文件上传
 */
export function uploadDRGsFile (data) {
    return request({
        url: '/MRMS/Api/DRGroup/DrgUpload',
        method: 'post',
        data,
        headers: {'Content-Type': 'multipart/form-data'}
    })
}
